<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-05-28 10:12:46  */ ?>
<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_ffheader.html" ,"" ,"" ,"" )  ;?>

   <style type="text/css">
    html{overflow-x : hidden;}
   </style>
   <div id="menu" class="menu">
      <ul id="submenu">
         <li id="title"><img src="<?php echo __TMPLPUB__;?>/Images/home.gif" title="DoYouHaoBaby - Import - title"/>&nbsp;<?php if(Safe::getGpc( 'title' )) :?><?php echo( $_GET['title'] ); ?><?php else: ?><?php print G::L( "后台首页", null, null ) ; ?><?php endif; ?></li>

         <?php $nIndex = '0'; ?>
		 <?php $i=1 ;?>
<?php if( is_array( $arrMenuList ) ) : foreach( $arrMenuList as $key=>$value): ?>

           <?php 
		     $arrNode = explode( '@',$value['node_name'] );
             $sNodeName = $arrNode[1];
		    ?>
           <?php if($value['group_id'] == $sMenuTag  
		                  and strtolower( $sNodeName ) != 'public' 
						  and strtolower( $sNodeName ) != 'index' 
						  and $value['node_access']==1) :?>
              <li class=''><a onClick="refreshmainframe('<?php echo( G::U($sNodeName.'/index') );?>');currentClass(<?php echo( $nIndex ); ?>);return false;" href="<?php echo( G::U($sNodeName.'/index') );?>"><?php echo( $value['node_title'] ); ?></a></li>
              <?php $nIndex++ ; ?>
           <?php endif; ?>
		 
<?php $i++ ;?>
<?php endforeach;endif; ?>
      </ul> 
    </div>
    <script type="text/javascript"> 
     <!--
	 function refreshmainframe(url){
		 parent.main.document.location = url;
	 }
	 var oAnchor = document.anchors.length;
	 if ( oAnchor.length > 0 && document.anchors(0) ){
		 refreshmainframe(document.anchors(0).href);
	 }
     //-->
    </script>

    <script type="text/javascript"> 
         function currentClass(n) {

	        var lis = document.getElementsByTagName('li');
	        for(var i = 0; i < lis.length; i++) {

		       lis[i].className = '';
	        }

			if( typeof lis[n+1]  != "undefined" ){

	          lis[n+1].className = 'active';
			}
        }
        currentClass(0);
   </script>
   
   
<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_fffooter.html" ,"" ,"" ,"" )  ;?>